/*    */ package handling.world.messenger;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public enum MessengerType
/*    */ {
/* 12 */   随机聊天(2, true),
/* 13 */   随机多人聊天(6, true),
/* 14 */   好友聊天(6, false);
/*    */   public final int maxMembers;
/*    */   public final boolean random;
/*    */   
/*    */   MessengerType(int maxMembers, boolean random) {
/* 19 */     this.maxMembers = maxMembers;
/* 20 */     this.random = random;
/*    */   }
/*    */   
/*    */   public static MessengerType getMessengerType(int maxMembers, boolean random) {
/* 24 */     for (MessengerType mstype : values()) {
/* 25 */       if (mstype.maxMembers == maxMembers && mstype.random == random) {
/* 26 */         return mstype;
/*    */       }
/*    */     } 
/* 29 */     return null;
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\handling\world\messenger\MessengerType.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */